import request from '@/utils/request'

//用户列表
export function partnerList(data) {
    return request({
        url:'/customers',
        method:'post',
        data
    })
}
//用户详情
export function partnerDetail(buyer_id) {
    return request({
        url:'/shop/buyer/detail',
        method:'get',
        params:{buyer_id:buyer_id}
    })
}
//客户认证列表
export function partnerAuthList(params) {
    return request({
        url:'/shop/buyer/auth',
        method:'get',
        params:params
    })
}


//提交客户认证结果
export function partnerAuthEdit(data) {
  return request({
    url:'/shop/auth/edit',
    method:'post',
    data:data
  })
}


//更改会员状态
export function operateState(data) {
  return request({
    url:'/shop/buyer/operateState',
    method:'post',
    data:data
  })
}

//用户导出
export function exportListExcel(params) {
  return request({
    url:'/shop/buyer/listExcel',
    method:'get',
    params:params
  })
}


//客户下拉选项列表
export function getCustomerOption(data) {
  return request({
    url:'/common/customerList',
    method:'post',
    data
  })
}

//客户配置数据接口
export function getCustomerSetting(data) {
  return request({
    url:'/customers/config',
    method:'post',
    data
  })
}

//员下拉选项列表
export function getUserOption(data) {
  return request({
    url:'/common/userList',
    method:'post',
    data
  })
}

//省市区列表
export function getAddressList() {
  return request({
    url:'/address',
    method:'post',
  })
}

//添加编辑客户
export function updateCustomers(data) {
  return request({
    url:'/customers/create',
    method:'post',
    data
  })
}

//获取客户详情
export function getCustomersInfo(data) {
  return request({
    url:'/customers/show',
    method:'post',
    data
  })
}

//获取跟进记录
export function getTrackingList(data) {
  return request({
    url:'/tracking/list',
    method:'post',
    data
  })
}

//联系人选项列表
export function getContactList(data) {
  return request({
    url:'/common/contactList',
    method:'post',
    data
  })
}

//添加跟进
export function saveTrackingInfo(data) {
  return request({
    url:'/tracking/add',
    method:'post',
    data
  })
}

//编辑跟进
export function editTrackingInfo(data) {
  return request({
    url:'/tracking/edit',
    method:'post',
    data
  })
}

//删除跟进
export function delTrackingInfo(data) {
  return request({
    url:'/tracking/delete',
    method:'post',
    data
  })
}


//获取联系人列表
export function getContactPageList(data) {
  return request({
    url:'/contact/list',
    method:'post',
    data
  })
}

//添加联系人
export function addContact(data) {
  return request({
    url:'/contact/add',
    method:'post',
    data
  })
}
//编辑联系人
export function editContactInfo(data) {
  return request({
    url:'/contact/edit',
    method:'post',
    data
  })
}

//删除联系人
export function delContactInfo(data) {
  return request({
    url:'/contact/delete',
    method:'post',
    data
  })
}

//客户使用材料列表
export function getGoodsList(data) {
  return request({
    url:'/goods/list',
    method:'post',
    data
  })
}

//获取分类列表
export function getCategoriesList(data) {
  return request({
    url:'/categories',
    method:'post',
    data
  })
}

//获取厂家列表
export function getBrandList(data) {
  return request({
    url:'/brand/list',
    method:'post',
    data
  })
}

//获取牌号列表
export function getGoodsSnList(data) {
  return request({
    url:'/goodsSn/list',
    method:'post',
    data
  })
}

//新增编辑使用材料
export function saveMaterial(data) {
  return request({
    url:'/goods/create',
    method:'post',
    data
  })
}

//获取操作记录
export function getLogList(data) {
  return request({
    url:'/contact/log',
    method:'post',
    data
  })
}

//获取客户配置列表
export function getConfigList(data) {
  return request({
    url:'/config/list',
    method:'post',
    data
  })
}

//客户配置列表新增/编辑
export function createConfigInfo(data) {
  return request({
    url:'/config/create',
    method:'post',
    data
  })
}

//导出
export function exportCustomers(data) {
  return request({
    url:'/customers/export',
    method:'post',
    data
  })
}

//获取七牛token
export function getQiniuToken(data) {
  return request({
    url:'/getQiniuToken',
    method:'post',
    data
  })
}


//客户转移
export function setCustomerMove(data) {
  return request({
    url:'/customers/move',
    method:'post',
    data
  })
}

//导入客户
export function importCustomer(data) {
  return request({
    url:'/customers/import',
    method:'post',
    data
  })
}

//更新排序
export function updateSort(data) {
  return request({
    url:'/config/sort',
    method:'post',
    data
  })
}

//验证企业信用代码是否已使用
export function checkBusinessCode(data) {
  return request({
    url:'/customers/checkBusinessCode',
    method:'post',
    data
  })
}

//获取协肋人列表
export function assistAPI(data) {
  return request({
    url:'/staffs/assist',
    method:'post',
    data
  })
}

//验证手机号是否已使用
export function checkContactMobile(data) {
  return request({
    url:'/contact/checkContactMobile',
    method:'post',
    data
  })
}

//删除客户列表
export function delCustomer(data) {
  return request({
    url:'/customers/batchUpdateState',
    method:'post',
    data
  })
}

//获取我的部门及下级部门
export function myDeptList(data) {
    return request({
        url:'/customers/myDeptList',
        method:'post',
        data
    })
}
//根据社会统一信用码获取企业工商信息
export function getCompanyInfo(data) {
  return request({
    url:'/customers/getCompanyInfo',
    method:'post',
    data
  })
}

//获取采购订单明细表
export function purchaseReportList(data) {
  return request({
    url:'/getPurchaseOrderInfoList',
    method:'post',
    data
  })
}

//获取销售订单明细表
export function saleReportList(data) {
  return request({
    url:'/getSaleOrderInfoList',
    method:'post',
    data
  })
}

//根据牌号模糊查找出分类厂家
export function goodsSnLike(data) {
  return request({
    url:'/goodsSn/like',
    method:'post',
    data
  })
}

//根据关键字模糊查找出分类列表
export function categoriesLike(data) {
  return request({
    url:'/categories/like',
    method:'post',
    data
  })
}

//根据关键字模糊查找出厂家列表
export function brandLike(data) {
  return request({
    url:'/brand/like',
    method:'post',
    data
  })
}

//销售订单列表
export function saleOrderList(data) {
  return request({
    url:'/orders',
    method:'post',
    data
  })
}

//获取订单状态列表
export function getOrderStatList(data) {
  return request({
    url:'/orders/state',
    method:'post',
    data
  })
}

//合同明细列表
export function getSaleDetailList(data) {
  return request({
    url:'/orders/detailList',
    method:'post',
    data
  })
}

//发货明细列表
export function getDeliverDetailList(data) {
  return request({
    url:'/deliver/detailList',
    method:'post',
    data
  })
}

//发货列表
export function getDeliverList(data) {
  return request({
    url:'/deliver/list',
    method:'post',
    data
  })
}

//提成列表
export function getSaleProfitList(data) {
  return request({
    url:'/deliver/saleProfit',
    method:'post',
    data
  })
}

//订单详情
export function getOrdersShow(data) {
  return request({
    url:'/orders/show',
    method:'post',
    data
  })
}

//订单确认
export function postOrdersprocess(data) {
  return request({
    url:'/orders/process',
    method:'post',
    data
  })
}

//发货配置
export function ordersGoodsConfig(data) {
  return request({
    url:'/orders/goods/config',
    method:'post',
    data
  })
}

//发货单详情
export function deliverBill(data) {
  return request({
    url:'/deliver/bill',
    method:'post',
    data
  })
}

//发货单编辑
export function deliverUpdate(data) {
  return request({
    url:'/deliver/update',
    method:'post',
    data
  })
}

//待办事项
export function statisticsWait(data) {
  return request({
    url:'/statistics/wait',
    method:'post',
    data
  })
}

//提交备注
export function ordersRemark(data) {
  return request({
    url:'/orders/remark',
    method:'post',
    data
  })
}

//导出
export function exportDetailList(data) {
  return request({
    url:'/orders/exportDetailList',
    method:'post',
    data
  })
}

//SAP更新时间
export function getKingInfo(data) {
  return request({
    url:'/kingInfo',
    method:'post',
    data
  })
}
//财务销售合同列表
export function getFinanceOrderList(data) {
  return request({
    url:'/finance/orderList',
    method:'post',
    data
  })
}

//收款明细列表
export function getFinanceOrderDetailList(data) {
  return request({
    url:'/finance/payDetailList',
    method:'post',
    data
  })
}

//财务合同订单支付
export function postOrderPay(data) {
  return request({
    url:'/finance/orderPay',
    method:'post',
    data
  })
}

//查看财务支付详情
export function getPayDetail(data) {
  return request({
    url:'/finance/payDetail',
    method:'post',
    data
  })
}

//上传图片
export function uploadBase64(data) {
  var url = "http://upload.qiniup.com/putb64/-1"; //非华东空间需要根据注意事项 1 修改上传域名
  var xhr = new XMLHttpRequest();
  return new Promise(function(resolve, reject){
    xhr.onreadystatechange=function(){
      if (xhr.readyState==4){
        let res = JSON.parse(xhr.responseText)
        console.log(data.imgDomain + res.key)
        resolve({src:data.imgDomain + res.key})
        // document.getElementById("myDiv").innerHTML=xhr.responseText;
      }
    }
    xhr.open("POST", url, true);
    xhr.setRequestHeader("Content-Type", "application/octet-stream");
    xhr.setRequestHeader("Authorization", "UpToken " + data.token);
    xhr.send(data.pic,);
  });

  // return request({
  //   url:'/upload/base64',
  //   method:'post',
  //   data
  // })
}

//提交到货时间
export function postDeliverVoucher(data) {
  return request({
    url:'/deliver/voucher',
    method:'post',
    data
  })
}

//合同收款取消
export function cancelPay(data) {
  return request({
    url:'/finance/cancelPay',
    method:'post',
    data
  })
}

//合同打印信息
export function printOrder(data) {
  return request({
    url:'/order/getPrintContent',
    method:'post',
    data
  })
}


//运费结算
export function freightSettlement(data) {
  return request({
    url:'/settlement/list',
    method:'post',
    data
  })
}

//上传合同附件
export function uploadOrderImg(data) {
  return request({
    url:'/orders/uploadFile',
    method:'post',
    data
  })
}


//新增发货单结算
export function createSettlement(data) {
  return request({
    url:'/settlement/create',
    method:'post',
    data
  })
}

//发货单详情
export function showSettlement(data) {
  return request({
    url:'/settlement/show',
    method:'post',
    data
  })
}

//发货单费用修改
export function expressDeliverSet(data) {
  return request({
    url:'/deliver/express/set',
    method:'post',
    data
  })
}

//发货单司机修改
export function deliverDeliverSet(data) {
  return request({
    url:'/deliver/driver/set',
    method:'post',
    data
  })
}

//发货单获取司机列表
export function deliverDeliverList(data) {
  return request({
    url:'/deliver/driver/list',
    method:'post',
    data
  })
}

//增加司机信息
export function addDriverOrder(data) {
  return request({
    url:'/orders/addDriver',
    method:'post',
    data
  })
}

//发货单结算 上传凭证
export function settlementPay(data) {
  return request({
    url:'/settlement/pay',
    method:'post',
    data
  })
}

//删除发货单结算
export function deleteSettlement(data) {
  return request({
    url:'/settlement/delete',
    method:'post',
    data
  })
}

//司机列表
export function getDrivers(data) {
  return request({
    url:'/drivers',
    method:'post',
    data
  })
}

//编辑司机信息
export function getDriversCreate(data) {
  return request({
    url:'/drivers/create',
    method:'post',
    data
  })
}

//删除司机信息
export function getDriversDel(data) {
  return request({
    url:'/drivers/delete',
    method:'post',
    data
  })
}

//导出发货明细
export function exportDeliverDetailList(data) {
  return request({
    url:'/deliver/detail/export',
    method:'post',
    data
  })
}

//导出发货单
export function exportDeliverList(data) {
  return request({
    url:'/delivers/export',
    method:'post',
    data
  })
}

//发票列表
export function invoicesList(data) {
  return request({
    url:'/invoices',
    method:'post',
    data
  })
}

//确认开票
export function invoicesEnter(data) {
  return request({
    url:'/invoice/enter',
    method:'post',
    data
  })
}

//修改密码
export function updatePassword(data) {
  return request({
    url:'/update/password',
    method:'post',
    data
  })
}

//批量下载
export function downloadContract(data) {
  return request({
    url:'/orders/downloadContract',
    method:'post',
    data
  })
}

//查询商品限额
export function searchLimit(data) {
  return request({
    url:'/deliver/deliverLimitNum',
    method:'post',
    data
  })
}

//黑名单
export function getBlackList(data) {
  return request({
    url:'/customers/blackList',
    method:'post',
    data
  })
}

//移入/移出黑名单
export function operateBlackList(data) {
  return request({
    url:'/customers/operateBlackList',
    method:'post',
    data
  })
}

//同步SAP数据
export function getSyncOneOrder(data) {
  return request({
    url:'/orders/syncOneOrder',
    method:'post',
    data
  })
}

//获取指定排货单商品对应的发货单商品
export function getDeliverGoods(data) {
  return request({
    url:'/deliver/getDeliverGoods',
    method:'post',
    data
  })
}

//排货单确认发货
export function planGoodsOperate(data) {
  return request({
    url:'/deliver/planGoodsOperate',
    method:'post',
    data
  })
}


//修改订单其它备注
export function changeOtherRemark(data) {
  return request({
    url:'/orders/changeOtherRemark',
    method:'post',
    data
  })
}

//指定客户的产品分析数量
export function customerBuyCount(data) {
  return request({
    url:'/analysis/customerBuyCount',
    method:'post',
    data
  })
}


//指定客户的忠诚度数据
export function customerBuyRate(data) {
  return request({
    url:'/analysis/customerBuyRate',
    method:'post',
    data
  })
}

//指定客户的贡献
export function customerProfit(data) {
  return request({
    url:'/analysis/customerProfit',
    method:'post',
    data
  })
}

//指定客户的商品分析
export function customerBuyGoods(data) {
  return request({
    url:'/analysis/customerBuyGoods',
    method:'post',
    data
  })
}

//指定客户的统计数据
export function profitSummary(data) {
  return request({
    url:'/analysis/profitSummary',
    method:'post',
    data
  })
}

//指定商品分析
export function goodsReport(data) {
  return request({
    url:'/analysis/goodsReport',
    method:'post',
    data
  })
}

//采购合同列表
export function purchaseOrderList(data) {
  return request({
    url:'/purchase/orderList',
    method:'post',
    data
  })
}

//采购明细合同列表
export function purchaseOrderGoodsList(data) {
  return request({
    url:'/purchase/orderGoodsList',
    method:'post',
    data
  })
}

//供应商列表
export function supplierList(data) {
  return request({
    url:'/common/supplierList',
    method:'post',
    data
  })
}

//获取对应权限的商品分类
export function myGoodsClass(data) {
  return request({
    url:'/purchase/myGoodsClass',
    method:'post',
    data
  })
}

//获取客户等级记录列表
export function gradeLog(data) {
  return request({
    url:'/customers/gradeLog',
    method:'post',
    data
  })
}

//获取客户月使用量
export function buyAnalysisList(data) {
  return request({
    url:'/customers/buyAnalysisList',
    method:'post',
    data
  })
}

//更新客户月使用量
export function updateBuyAnalysis(data) {
  return request({
    url:'/customers/updateBuyAnalysis',
    method:'post',
    data
  })
}

//修改客户用料使用情况
export function updateUseGoodsNum(data) {
  return request({
    url:'/customers/updateUseGoodsNum',
    method:'post',
    data
  })
}

//获取订单发货信息
export function ordDeliverGoods(data) {
  return request({
    url:'/deliver/ordDeliverGoods',
    method:'post',
    data
  })
}

//提交发货单修改底价
export function editPurchaseRealPrice(data) {
  return request({
    url:'/deliver/changeRealPrice',
    method:'post',
    data
  })
}

//发货单结算明细列表
export function settlementDetailList(data) {
  return request({
    url:'/settlement/detailList',
    method:'post',
    data
  })
}

//发货单结算明细列表导出
export function settlementExportDetailList(data) {
  return request({
    url:'/settlement/exportDetailList',
    method:'post',
    data
  })
}

//发货单转移运费结算信息
export function settlementMove(data) {
    return request({
        url:'/settlement/move',
        method:'post',
        data
    })
}

//设置采购评级
export function customersAjaxEdit(data) {
  return request({
    url:'/customers/ajaxEdit',
    method:'post',
    data
  })
}

//获取三个月未成交客户
export function unOrderCustomers(data) {
  return request({
    url:'/customers/unOrderCustomers',
    method:'post',
    data
  })
}

//增加关联客户
export function addRelatio(data) {
  return request({
    url:'/customers/addRelation',
    method:'post',
    data
  })
}

//删除关联客户
export function delRelation(data) {
  return request({
    url:'/customers/delRelation',
    method:'post',
    data
  })
}

//查询潜在等级
export function customerPotential(data) {
  return request({
    url:'/common/customerPotential',
    method:'post',
    data
  })
}

//查询潜在等级
export function exportOrderList(data) {
  return request({
    url:'/finance/exportOrderList',
    method:'post',
    data
  })
}

//杂费(装卸费)列表
export function consultationList(data) {
  return request({
    url:'/consultationList',
    method:'post',
    data
  })
}

//杂费(装卸费)确认付款
export function consultationPay(data) {
  return request({
    url:'/consultationPay',
    method:'post',
    data
  })
}

//产品线选项列表
export function goodsLineList(data) {
  return request({
    url:'/common/goodsLineList',
    method:'post',
    data
  })
}

//获取指定客户产品线负责人
export function myCustomerGoodsLine(data) {
  return request({
    url:'/customers/myCustomerGoodsLine',
    method:'post',
    data
  })
}

//获取产品线列表
export function getGoodsLineList(data) {
  return request({
    url:'/customers/goodsLineList',
    method:'post',
    data
  })
}

//编辑产品线列表
export function setGoodsLine(data) {
  return request({
    url:'/customers/setGoodsLine',
    method:'post',
    data
  })
}

//删除产品线
export function batchDel(data) {
  return request({
    url:'/customers/batchDel',
    method:'post',
    data
  })
}

//转移产品线
export function batchMove(data) {
  return request({
    url:'/customers/batchMove',
    method:'post',
    data
  })
}

//获取指定客户产品线
export function ajaxGoodsLineList(data) {
  return request({
    url:'/customers/ajaxGoodsLineList',
    method:'post',
    data
  })
}

//获取采购合同详情
export function purchaseOrderDetail(data) {
  return request({
    url:'/purchase/orderDetail',
    method:'post',
    data
  })
}

//采购合同打印信息
export function printPurchaseOrder(data) {
  return request({
    url:'/purchase/getPrintContent',
    method:'post',
    data
  })
}

//采购合同审核
export function purchaseProcess(data) {
  return request({
    url:'/purchase/process',
    method:'post',
    data
  })
}

//上传采购合同
export function purchaseUploadFiles(data) {
  return request({
    url:'/purchase/uploadFiles',
    method:'post',
    data
  })
}

//付款列表
export function getPaylist(data) {
  return request({
    url:'/purchase/payList',
    method:'post',
    data
  })
}

//采购合同支付
export function postPurchasePay(data) {
  return request({
    url:'/purchase/pay',
    method:'post',
    data
  })
}


//采购合同支付记录取消
export function postCancelPay(data) {
  return request({
    url:'/purchase/cancelPay',
    method:'post',
    data
  })
}

//入库单列表
export function entryList(data) {
  return request({
    url:'/warehouse/entryList',
    method:'post',
    data
  })
}

//入库单详情
export function entryDetail(data) {
  return request({
    url:'/warehouse/entryDetail',
    method:'post',
    data
  })
}

//设置入库单司机信息
export function setEntryDriver(data) {
  return request({
    url:'/warehouse/setEntryDriver',
    method:'post',
    data
  })
}

//设置费用信息
export function setExpress(data) {
  return request({
    url:'/warehouse/setExpress',
    method:'post',
    data
  })
}


//其它出入库单据列表
export function otherEntryList(data) {
  return request({
    url:'/warehouse/otherEntryList',
    method:'post',
    data
  })
}

//其它出入库单详情
export function otherEntryDetail(data) {
  return request({
    url:'/warehouse/otherEntryDetail',
    method:'post',
    data
  })
}

//供应商等级列表
export function supplierGradeList(data) {
  return request({
    url:'/common/supplierGradeList',
    method:'post',
    data
  })
}

//客户永久删除
export function customerNeverDel(data) {
  return request({
    url:'/customers/delete',
    method:'post',
    data
  })
}

//待审核客户列表
export function customerWaitCheck(data) {
  return request({
    url:'/customers/waitCheck',
    method:'post',
    data
  })
}

//审核客户
export function customerCheck(data) {
  return request({
    url:'/customers/check',
    method:'post',
    data
  })
}

//采购跟进记录列表
export function supplierTrackingList(data) {
  return request({
    url:'/supplier/trackingList',
    method:'post',
    data
  })
}

//添加采购跟进记录
export function supplierAddTracking(data) {
  return request({
    url:'/supplier/addTracking',
    method:'post',
    data
  })
}

//采购跟进方式
export function supplierTrackingType(data) {
  return request({
    url:'/common/supplierTrackingType',
    method:'post',
    data
  })
}


//删除跟进记录
export function supplierDelTracking(data) {
  return request({
    url:'/supplier/delTracking',
    method:'post',
    data
  })
}

//客户列表(含负责的产品线)
export function customersMyCharge(data) {
  return request({
    url:'/customers/myCharge',
    method:'post',
    data
  })
}


//导出产品线客户列表
export function exportGoodsLine(data) {
  return request({
    url:'/customers/exportGoodsLine',
    method:'post',
    data
  })
}

//导入产品线负责人及采购量
export function batchUpdateGoodsLine(data) {
  return request({
    url:'/customers/batchUpdateGoodsLine',
    method:'post',
    data
  })
}


//将指定客户的有关信息同步到关联的公司
export function syncCustomerInfo(data) {
  return request({
    url:'/customers/syncCustomerInfo',
    method:'post',
    data
  })
}

//商品列表
export function orderGoodsList(data) {
  return request({
    url:'/getGoodsList',
    method:'post',
    data
  })
}


//日计划规则列表
export function dayRuleListApi(data) {
  return request({
    url:'/salesmanCheck/dayRuleList',
    method:'post',
    data
  })
}

//新增/编辑日计划规则
export function editDayRule(data) {
  return request({
    url:'/salesmanCheck/editDayRule',
    method:'post',
    data
  })
}


//删除日计划规则
export function delDayRule(data) {
  return request({
    url:'/salesmanCheck/delDayRule',
    method:'post',
    data
  })
}

//周计划规则列表
export function weekRuleList(data) {
  return request({
    url:'/salesmanCheck/weekRuleList',
    method:'post',
    data
  })
}

//编辑周计划规则
export function editWeekRule(data) {
  return request({
    url:'/salesmanCheck/editWeekRule',
    method:'post',
    data
  })
}

//新增采购订单备注
export function purchaseRemark(data) {
  return request({
    url:'/purchase/remark',
    method:'post',
    data
  })
}
//新增供应商关联公司
export function addRelationSupplier(data) {
  return request({
    url:'/supplier/addRelation',
    method:'post',
    data
  })
}

//删除供应商关联公司
export function delRelationSupplier(data) {
  return request({
    url:'/supplier/delRelation',
    method:'post',
    data
  })
}

//同步SAP数据
export function syncOneKingOrderPurchase(data) {
  return request({
    url:'/purchase/syncOneKingOrder',
    method:'post',
    data
  })
}

//采购单申请支付
export function purchaseAddApplyPay(data) {
  return request({
    url:'/purchase/addApplyPay',
    method:'post',
    data
  })
}

//采购单申请支付
export function purchaseApplyPayList(data) {
  return request({
    url:'/purchase/applyPayList',
    method:'post',
    data
  })
}

//采购单申请支付流程确认
export function applyPayProcess(data) {
  return request({
    url:'/purchase/applyPayProcess',
    method:'post',
    data
  })
}

//采购单申请支付流程确认
export function applyPayInfoPurchase(data) {
  return request({
    url:'/purchase/applyPayInfo',
    method:'post',
    data
  })
}

//采购单申请支付流程确认
export function getClassOrderList(data) {
    return request({
        url:'/analysis/classOrderList',
        method:'post',
        data
    })
}


//获取客户历史订单
export function oldOrderGoods(data) {
  return request({
    url:'/orders/oldOrderGoods',
    method:'post',
    data
  })
}


//关联客户列表
export function getRelationList(data) {
  return request({
    url:'/customers/relationList',
    method:'post',
    data
  })
}

//提交修改付款申请
export function editApplyInfo(data) {
  return request({
    url:'/purchase/editApplyInfo',
    method:'post',
    data
  })
}


//供应商操作记录
export function supplierlogList(data) {
  return request({
    url:'/supplier/logList',
    method:'post',
    data
  })
}

//仓库列表
export function warehouseList(data) {
  return request({
    url:'/warehouse/warehouseList',
    method:'post',
    data
  })
}

//仓库库存列表
export function warehouseStockList(data) {
  return request({
    url:'/warehouse/stockList',
    method:'post',
    data
  })
}

//日工作目标列表
export function dayDataList(data) {
  return request({
    url:'/salesmanCheck/dayDataList',
    method:'post',
    data
  })
}

//周工作目标列表
export function weekDataList(data) {
  return request({
    url:'/salesmanCheck/weekDataList',
    method:'post',
    data
  })
}

//生成周计划
export function createCheckData(data) {
  return request({
    url:'/salesmanCheck/createCheckData',
    method:'post',
    data
  })
}

//修改日计划
export function editDayData(data) {
  return request({
    url:'/salesmanCheck/editDayData',
    method:'post',
    data
  })
}

//修改周计划
export function editWeekData(data) {
  return request({
    url:'/salesmanCheck/editWeekData',
    method:'post',
    data
  })
}

//运费审核
export function settlementProcess(data) {
  return request({
    url:'/settlement/process',
    method:'post',
    data
  })
}



//获取操作日志列表
export function staffsLogList(data) {
  return request({
    url:'/staffs/logList',
      method:'post',
      data
  })
}

//供应商余额查询
export function supplierBalanceInfo(data) {
  return request({
    url:'/supplier/balanceInfo',
    method:'post',
    data
  })
}


//上传账务结算单打印
export function settlementUpdatePrintNum(data) {
  return request({
    url:'/settlement/updatePrintNum',
    method:'post',
    data
  })
}

//供应商预付款单提交
export function addAdvancePay(data) {
  return request({
    url:'/purchase/addAdvancePay',
    method:'post',
    data
  })
}


//上传账务付款单打印
export function purchaseUpdatePrintNum(data) {
  return request({
    url:'/purchase/updateApplyPrintNum',
      method:'post',
      data
  })
}

//退款提交
export function orderRefund(data) {
  return request({
    url:'/purchase/orderRefund',
    method:'post',
    data
  })
}

//修改采购订单采购员
export function changeBuyerUserId(data) {
  return request({
    url:'/purchase/changeBuyerUserId',
    method:'post',
    data
  })
}

//获取采购排货指定排货单商品对应的入库单
export function getEntryGoods(data) {
  return request({
    url:'/purchase/getEntryGoods',
    method:'post',
    data
  })
}

//采购排货单确认发货
export function purchasePlanGoodsOperate(data) {
  return request({
    url:'/purchase/planGoodsOperate',
    method:'post',
    data
  })
}

//销售分析
export function getSaleDeliverList(data) {
  return request({
    url:'/analysis/saleDeliverList',
    method:'post',
    data
  })
}

//客户分析
export function getCustomerList(data) {
  return request({
    url:'/analysis/customerList',
    method:'post',
    data
  })
}

//客户质量协议列表
export function getAgreementList(data) {
  return request({
    url:'/customers/agreementList',
    method:'post',
    data
  })
}

//上传客户质量协议
export function addAgreement(data) {
  return request({
    url:'/customers/addAgreement',
    method:'post',
    data
  })
}

//删除客户质量协议
export function delAgreement(data) {
  return request({
    url:'/customers/delAgreement',
    method:'post',
    data
  })
}
//修改客户潜在等级
export function ajaxEditDengji(data) {
  return request({
    url:'/customers/ajaxEdit',
    method:'post',
    data
  })
}


//取消付款申请
export function cancelApplyPay(data) {
  return request({
    url:'/purchase/cancelApplyPay',
    method:'post',
    data
  })
}

//设置订单 推荐人
export function setIntroducerInfo(data) {
  return request({
    url:'/orders/setIntroducerInfo',
    method:'post',
    data
  })
}

//设置客户未成交原因
export function setUnOrderReason(data) {
  return request({
    url:'/customers/setUnOrderReason',
    method:'post',
    data
  })
}

//介绍人列表
export function introducerList(data) {
  return request({
    url:'/customers/introducerList',
    method:'post',
    data
  })
}

//新增介绍人
export function addIntroducer(data) {
  return request({
    url:'/customers/addIntroducer',
    method:'post',
    data
  })
}

//编辑介绍人
export function editIntroducer(data) {
    return request({
        url:'/customers/editIntroducer',
        method:'post',
        data
    })
}

//客户介绍人列表
export function customerIntroducerList(data) {
  return request({
    url:'/customers/customerIntroducerList',
    method:'post',
    data
  })
}

//删除客户介绍人
export function delCustomerIntroducer(data) {
  return request({
    url:'/customers/delCustomerIntroducer',
    method:'post',
    data
  })
}

//绑定客户介绍人
export function setCustomerIntroducer(data) {
  return request({
    url:'/customers/setCustomerIntroducer',
    method:'post',
    data
  })
}

//下载pdf
export function downPdf(data) {
  return request({
    url:'/orders/originalContractUrl',
    method: 'post',
    data
  })
}

//获取未成交原因及对策
export function unOrderSolutions(data) {
  return request({
    url:'/customers/unOrderSolutions',
    method: 'post',
    data
  })
}

//提交原因对策
export function editUnOrderSolutions(data) {
  return request({
    url:'/customers/editUnOrderSolutions',
    method: 'post',
    data
  })
}

//报表库存查询
export function queryGoodsStock(data) {
  return request({
    url:'/warehouse/queryGoodsStock',
    method: 'post',
    data
  })
}

//报表客户分析
export function analysisOrderList(data) {
  return request({
    url:'/analysis/orderList',
    method: 'post',
    data
  })
}

//报表客户分析-客户详情
export function analysisCustomerInfo(data) {
  return request({
    url:'/analysis/customerInfo',
    method: 'post',
    data
  })
}

//报表客户分析-图表
export function customerOrderSummary(data) {
  return request({
    url:'/analysis/customerOrderSummary',
    method: 'post',
    data
  })
}

//报表客户分析-列表
export function analysisOrderSummaryByPage(data) {
  return request({
    url:'/analysis/orderSummaryByPage',
    method: 'post',
    data
  })
}

//报表客户分析-明细列表
export function analysisOrderDetailList(data) {
  return request({
    url:'/analysis/orderDetailList',
    method: 'post',
    data
  })
}

//报表库存查询总量
export function queryGoodsStockSummary(data) {
  return request({
    url:'/warehouse/queryGoodsStockSummary',
    method: 'post',
    data
  })
}

//设置预警库存
export function setGoodsStockWarning(data) {
  return request({
    url:'/warehouse/setGoodsStockWarning',
    method: 'post',
    data
  })
}

//库存商品列表
export function kingGoodsList(data) {
  return request({
    url:'/warehouse/kingGoodsList',
    method: 'post',
    data
  })
}

//修改价格改提示
export function moresuGoodsPrice(data) {
  return request({
    url:'/orders/moresuGoodsPrice',
    method: 'post',
    data
  })
}


//获取财务审核订单凭证
export function userPayCertificate(data) {
  return request({
    url:'/finance/userPayCertificate',
    method: 'post',
    data
  })
}

//提交财务审核
export function checkUserPayCertificate(data) {
  return request({
    url:'/finance/checkUserPayCertificate',
    method: 'post',
    data
  })
}

//获取导出全部客户字段
export function getExportFields(data) {
    return request({
        url:'/customers/getExportFields',
        method: 'post',
        data
    })
}

//按需导出全部客户
export function getExportData(data) {
    return request({
        url:'/customers/getExportData',
        method: 'post',
        data
    })
}

//更新发货单打印次数
export function deliverUpdatePrintNum(data) {
  return request({
    url:'/deliver/updatePrintNum',
    method: 'post',
    data
  })
}

//更新入库单打印次数
export function warehouseUpdatePrintNum(data) {
  return request({
    url:'/warehouse/updateEntryPrintNum',
    method: 'post',
    data
  })
}

//获取品名
export function getGoodsClass(data) {
  return request({
    url:'/goods/goodsClass',
    method:'post',
    data
  })
}

//获取用户购买频率
export function buyRateByYear(data) {
  return request({
    url:'/customers/buyRateByYear',
    method:'post',
    data
  })
}

//获取品类购买频率
export function buyClassRateByYear(data) {
  return request({
    url:'/customers/buyClassRateByYear',
    method:'post',
    data
  })
}

//获取商品购买频率
export function buyGoodsRateByYear(data) {
  return request({
    url:'/customers/buyGoodsRateByYear',
    method:'post',
    data
  })
}

//添加客户采购记录
export function addOtherOrder(data) {
  return request({
    url:'/customers/addOtherOrder',
    method:'post',
    data
  })
}

//获取客户采购记录
export function buyRateInfo(data) {
  return request({
    url:'/customers/buyRateInfo',
    method:'post',
    data
  })
}


//获取客户其它采购记录
export function otherOrderList(data) {
  return request({
    url:'/customers/otherOrderList',
    method:'post',
    data
  })
}

//获取购买提醒
export function buyRemindList(data) {
  return request({
    url:'/customers/buyRemindList',
    method:'post',
    data
  })
}

//删除客户其它采购
export function delOtherOrder(data) {
  return request({
    url:'/customers/delOtherOrder',
    method:'post',
    data
  })
}


//采购订单详情
export function purchaseOrderInfo(data) {
  return request({
    url:'/takeOrder/purchaseOrderInfo',
    method:'post',
    data
  })
}

//销售订单详情
export function saleOrderInfo(data) {
  return request({
    url:'/takeOrder/saleOrderInfo',
    method:'post',
    data
  })
}

//提交提货单
export function addOrderTakeOrder(data) {
  return request({
    url:'/takeOrder/addOrder',
    method:'post',
    data
  })
}

//提货单列表
export function takeListTakeOrder(data) {
  return request({
    url:'/takeOrder/takeList',
    method:'post',
    data
  })
}

//提货单详情
export function getTakeInfo(data) {
  return request({
    url:'/takeOrder/takeInfo',
    method:'post',
    data
  })
}

//提货单状态
export function getTakeOrderOrderStateConfig(data) {
  return request({
    url:'/takeOrder/orderStateConfig',
    method:'post',
    data
  })
}

//提货单操作
export function postTakeOrderOrderProcess(data) {
  return request({
    url:'/takeOrder/process',
    method:'post',
    data
  })
}

//提货单打印
export function getPrintContentakeOrder(data) {
  return request({
    url:'/takeOrder/getPrintContent',
    method:'post',
    data
  })
}

//提货单-查询销售订单
export function getOrderGoodsOfTakeOrder(data) {
  return request({
    url:'/takeOrder/getOrderGoods',
    method:'post',
    data
  })
}

//销售全部发货单导出
export function saleDeliversExportAll(data) {
  return request({
    url:'/delivers/exportAll',
    method:'post',
    data
  })
}

//商品品类列表
export function getGoodsClassList(data) {
  return request({
    url:'/warehouse/goodsClassList',
    method:'post',
    data
  })
}


//下载采购合同pdf
export function purchaseOriginalContractUrl(data) {
  return request({
    url:'/purchase/originalContractUrl',
    method:'post',
    data
  })
}


//客户跟进-kpi
export function salesmanCheck(data) {
  return request({
    url:'/customers/salesmanCheck',
    method:'post',
    data
  })
}



//费用类型修改
export function changeFreightType(data) {
  return request({
    url:'/deliver/changeFreightType',
    method:'post',
    data
  })
}


//添加报价
export function addGoodsPrice(data) {
  return request({
    url:'/goodsPrice/add',
    method:'post',
    data
  })
}

//某天的品类价格
export function dayCategoryPrice(data) {
  return request({
    url:'/goodsPrice/dayCategoryPrice',
    method:'post',
    data
  })
}

//某天的报价记录
export function dayGoodsPrice(data) {
  return request({
    url:'/goodsPrice/dayGoodsPrice',
    method:'post',
    data
  })
}

//数量柱形图数据
export function categoryPriceSummary(data) {
  return request({
    url:'/goodsPrice/categoryPriceSummary',
    method:'post',
    data
  })
}

//牌号销售量列表
export function goodsPricePriceList(data) {
  return request({
    url:'/goodsPrice/priceList',
    method:'post',
    data
  })
}

// 指定商品某时间段的销售记录
export function goodsPriceSaleOrderList(data) {
  return request({
    url:'/goodsPrice/saleOrderList',
    method:'post',
    data
  })
}

// 指定商品某时间段的采购记录
export function goodsPricePurchaseOrderList(data) {
  return request({
    url:'/goodsPrice/purchaseOrderList',
    method:'post',
    data
  })
}

// 指定商品某时间段的发货记录
export function goodsPriceDeliverList(data) {
  return request({
    url:'/goodsPrice/deliverList',
    method:'post',
    data
  })
}


// 模板列表
export function getTemplateList(data) {
  return request({
    url:'/evaluate/templateList',
    method:'post',
    data
  })
}


// 更改模板状态
export function changeTemplate(data) {
  return request({
    url:'/evaluate/changeTemplate',
    method:'post',
    data
  })
}

// 新增/编辑模板
export function addTemplate(data) {
  return request({
    url:'/evaluate/addTemplate',
    method:'post',
    data
  })
}

//项目列表
export function itemList(data) {
  return request({
    url:'/evaluate/itemList',
    method:'post',
    data
  })
}

//添加项目
export function addItem(data) {
  return request({
    url:'/evaluate/addItem',
    method:'post',
    data
  })
}

//根据部门选择员工
export function listByDept(data) {
  return request({
    url:'/staffs/listByDept',
    method:'post',
    data
  })
}


// 添加活动
export function addActivity(data) {
  return request({
    url:'/evaluate/addActivity',
    method:'post',
    data
  })
}

// 活动列表
export function activityList(data) {
  return request({
    url:'/evaluate/activityList',
    method:'post',
    data
  })
}

// 投票明细列表
export function activityEvaluator(data) {
  return request({
    url:'/evaluate/activityEvaluator',
    method:'post',
    data
  })
}

// 投票活动投票统计
export function evaluateAnalysis(data) {
  return request({
    url:'/evaluate/evaluateAnalysis',
    method:'post',
    data
  })
}

// 投票活动详情
export function activityInfo(data) {
  return request({
    url:'/evaluate/activityInfo',
    method:'post',
    data
  })
}

//自评详情
export function selfEvaluateInfo(data) {
  return request({
    url:'/evaluate/selfEvaluateInfo',
    method:'post',
    data
  })
}

//自评项表单内容
export function selfEvaluateForm(data) {
  return request({
    url:'/evaluate/selfEvaluateForm',
    method:'post',
    data
  })
}

//提交自评填写内容
export function selfEvaluateSubmit(data) {
  return request({
    url:'/evaluate/selfEvaluateSubmit',
    method:'post',
    data
  })
}

//我的投票记录
export function evaluateList(data) {
  return request({
    url:'/evaluate/evaluateList',
    method:'post',
    data
  })
}

//投票表单
export function evaluateForm(data) {
  return request({
    url:'/evaluate/evaluateForm',
    method:'post',
    data
  })
}

//投票表单提交
export function evaluateSubmit(data) {
  return request({
    url:'/evaluate/evaluateSubmit',
    method:'post',
    data
  })
}


//模版复制
export function templateCopy(data) {
  return request({
    url:'/evaluate/templateCopy',
    method:'post',
    data
  })
}

//取消评价活动
export function activityChange(data) {
  return request({
    url:'/evaluate/activityChange',
    method:'post',
    data
  })
}


//采购收票
export function invoiceListPurchase(data) {
  return request({
    url:'/purchase/invoiceList',
    method:'post',
    data
  })
}

//删除项目
export function delItem(data) {
  return request({
    url:'/evaluate/delItem',
    method:'post',
    data
  })
}

//销售发票列表
export function invoiceListSale (data) {
  return request({
    url:'/deliver/invoiceList',
    method:'post',
    data
  })
}

//发货明细申请复核
export function applyRecheck (data) {
  return request({
    url:'/deliver/applyRecheck',
    method:'post',
    data
  })
}

//分类毛利列表
export function goodsProfitList (data) {
  return request({
    url:'/goods/profitList',
    method:'post',
    data
  })
}

//分类毛利编辑
export function goodsProfitEdit (data) {
  return request({
    url:'/goods/profitEdit',
    method:'post',
    data
  })
}


//确认自评
export function postSelfEvaluateSure (data) {
    return request({
        url:'/evaluate/selfEvaluateSure',
        method:'post',
        data
    })
}


//学员添加/编辑
export function studentAdd (data) {
    return request({
        url:'/student/add',
        method:'post',
        data
    })
}

//学员列表
export function studentList (data) {
    return request({
        url:'/student/list',
        method:'post',
        data
    })
}


//审核人列表
export function checkerList (data) {
    return request({
        url:'/student/checkerList',
        method:'post',
        data
    })
}


//审核人编辑
export function checkerEdit (data) {
    return request({
        url:'/student/checkerEdit',
        method:'post',
        data
    })
}

//我的积分变更记录
export function integralChangeList (data) {
    return request({
        url:'/student/integralChangeList',
        method:'post',
        data
    })
}

//积分导入
export function integralImport (data) {
    return request({
        url:'/student/integralImport',
        method:'post',
        data
    })
}

//全部积分申请
export function integralList (data) {
    return request({
        url:'/student/integralList',
        method:'post',
        data
    })
}


//销售实时库存查询
export function querySaleGoodsStock (data) {
    return request({
        url:'/warehouse/querySaleGoodsStock',
        method:'post',
        data
    })
}

//投票图表
export function evaluateInternal (data) {
    return request({
        url:'/evaluate/evaluateInternal',
        method:'post',
        data
    })
}


//需要我投票的活动
export function needMyEvaluateActivity (data) {
    return request({
        url:'/evaluate/needMyEvaluateActivity',
        method:'post',
        data
    })
}


//投票的报表
export function evaluateSummary (data) {
    return request({
        url:'/evaluate/evaluateSummary',
        method:'post',
        data
    })
}

//投票的报表-平均分
export function evaluateSummaryForm (data) {
    return request({
        url:'/evaluate/evaluateSummaryForm',
        method:'post',
        data
    })
}


//收货确认函列表
export function customerDeliver (data) {
    return request({
        url:'/deliver/customerDeliver',
        method:'post',
        data
    })
}

//打印预览/批量打印
export function customerDeliverList(data) {
    return request({
        url:'/deliver/customerDeliverList',
        method:'post',
        data
    })
}


//上传收货确认函回单
export function uploadReceivedUrl(data) {
    return request({
        url:'/deliver/uploadReceivedUrl',
        method:'post',
        data
    })
}

//客户商品发票列表
export function customGoodsList(data) {
  return request({
    url:'/goods/customGoodsList',
    method:'post',
    data
  })
}


//客户商品发票编辑
export function customGoodsEdit(data) {
  return request({
    url:'/goods/customGoodsEdit',
    method:'post',
    data
  })
}


//客户商品发票删除
export function customGoodsDel(data) {
  return request({
    url:'/goods/customGoodsDel',
    method:'post',
    data
  })
}

//修改成授信客户
export function changeCustomerShouXing(data) {
  return request({
    url:'/customers/changeCustomer',
    method:'post',
    data
  })
}


//修改成质押单
export function changeOrderShouXing(data) {
  return request({
    url:'/orders/changeOrder',
    method:'post',
    data
  })
}

//关联采购订单
export function guanglianOrderShouXing(data) {
  return request({
    url:'/orders/changeOrder',
    method:'post',
    data
  })
}

//修改提单备注
export function changeTakeInfo(data) {
  return request({
    url:'/takeOrder/changeTakeInfo',
    method:'post',
    data
  })
}


//库存查询
export function queryGoodsStockNew(data) {
  return request({
    url:'/warehouse/queryGoodsStockNew',
    method:'post',
    data
  })
}


//客户新增材料查询
export function cutomerGoodsSn(data) {
  return request({
    url:'/goodsSn/list2',
    method:'post',
    data
  })
}


//资料库牌号树
export function fileGoodsSnTree(data) {
  return request({
    url:'/common/goodsSnTree',
    method:'post',
    data
  })
}



//资料库列表
export function fileGoodsSnList(data) {
  return request({
    url:'/common/goodsFileList',
    method:'post',
    data
  })
}


//采购毛利评分
export function getPurchaseIntegral(data) {
  return request({
    url:'/kpi/purchaseIntegral',
    method:'post',
    data
  })
}

//销售询价列表
export function getGoodsInquiryList(data) {
  return request({
    url:'/inquiry/goodsInquiryList',
    method:'post',
    data
  })
}


//新增销售询价
export function addGoodsInquiry(data) {
  return request({
    url:'inquiry/addGoodsInquiry',
    method:'post',
    data
  })
}


//修改询价状态
export function changeInquiryInfo(data) {
  return request({
    url:'inquiry/changeInquiryInfo',
    method:'post',
    data
  })
}

//提交采购报价
export function postInquiryOffer(data) {
  return request({
    url:'inquiry/inquiryOffer',
    method:'post',
    data
  })
}

//获取商品
export function getCrmGoodsList(data) {
  return request({
    url:'/goods/crmGoodsList',
    method:'post',
    data
  })
}

//未成交原因
export function inquiryUnOrderReasonList(data) {
  return request({
    url:'/common/inquiryUnOrderReasonList',
    method:'post',
    data
  })
}


//采购货源列表
export function gegtGoodsSourceList(data) {
  return request({
    url:'inquiry/goodsSourceList',
    method:'post',
    data
  })
}

//新增采购货源
export function addGoodsSource(data) {
  return request({
    url:'inquiry/addGoodsSource',
    method:'post',
    data
  })
}

//预定采购货源
export function goodsSourceOrder(data) {
  return request({
    url:'inquiry/goodsSourceOrder',
    method:'post',
    data
  })
}


//编辑采购货源
export function editGoodsSource(data) {
  return request({
    url:'inquiry/editGoodsSource',
    method:'post',
    data
  })
}


//采购货源预定明细
export function getGoodsOrderList(data) {
  return request({
    url:'inquiry/goodsOrderList',
    method:'post',
    data
  })
}


//采购货源预定取消
export function goodsOrderCancel(data) {
  return request({
    url:'inquiry/goodsOrderCancel',
    method:'post',
    data
  })
}

//询价时间设置列表
export function inquiryTimeList(data) {
  return request({
    url:'inquiry/inquiryTimeList',
    method:'post',
    data
  })
}

//询价时间设置
export function inquiryTimeSet(data) {
  return request({
    url:'inquiry/inquiryTimeSet',
    method:'post',
    data
  })
}


//询价商品统计
export function statisticsByGoods(data) {
  return request({
    url:'inquiry/statisticsByGoods',
    method:'post',
    data
  })
}


//询价业务员统计
export function statisticsByUser(data) {
  return request({
    url:'inquiry/statisticsByUser',
    method:'post',
    data
  })
}


//询价时效统计
export function statisticsByDate(data) {
  return request({
    url:'inquiry/statisticsByDate',
    method:'post',
    data
  })
}

//客户统计主页面数据
export function statisticsMainData(data) {
  return request({
    url:'customer/statisticsMainData',
    method:'post',
    data
  })
}

//客户购买数量排行
export function buyNumStatistics(data) {
  return request({
    url:'customer/buyNumStatistics',
    method:'post',
    data
  })
}

//客户购买频率
export function buyRateStatistics(data) {
  return request({
    url:'customer/buyRateStatistics',
    method:'post',
    data
  })
}

//毛利排行
export function profitStatistics(data) {
  return request({
    url:'customer/profitStatistics',
    method:'post',
    data
  })
}

//客户使用材料统计
export function useGoodsStatistics(data) {
  return request({
    url:'customer/useGoodsStatistics',
    method:'post',
    data
  })
}

//客户销售排行(吨毛利)
export function saleProfitList(data) {
  return request({
    url:'customer/saleProfitList',
    method:'post',
    data
  })
}

//切换客户主子状态
export function changeAjaxEdit(data) {
  return request({
    url:'/customers/ajaxEdit',
    method:'post',
    data
  })
}


//运满满查运费
export function checkFreighInquiry(data) {
  return request({
    url:'/logistics/inquiry',
    method:'post',
    data
  })
}


//询价列表
export function getIinquiryList(data) {
  return request({
    url:'/logistics/inquiryList',
    method:'post',
    data
  })
}

//默认加价比例设置
export function defaultPriceRateSet(data) {
  return request({
    url:'/logistics/defaultPriceRateSet',
    method:'post',
    data
  })
}

//加价比例设置列表
export function configList(data) {
  return request({
    url:'/logistics/configList',
    method:'post',
    data
  })
}

// 加价比例设置特殊
export function configSet(data) {
  return request({
    url:'/logistics/configSet',
    method:'post',
    data
  })
}


// 发布货源
export function addSource(data) {
  return request({
    url:'/logistics/addSource',
    method:'post',
    data
  })
}


// 删除加价比例设置
export function configDel(data) {
  return request({
    url:'/logistics/configDel',
    method:'post',
    data
  })
}

// 货源列表
export function sourceList(data) {
  return request({
    url:'/logistics/sourceList',
    method:'post',
    data
  })
}

// 货源详情
export function sourceInfo(data) {
  return request({
    url:'/logistics/sourceInfo',
    method:'post',
    data
  })
}


// 货源下架
export function delSource(data) {
  return request({
    url:'/logistics/delSource',
    method:'post',
    data
  })
}


// 运满满订单列表
export function ymmOrderList(data) {
  return request({
    url:'/logistics/ymmOrderList',
    method:'post',
    data
  })
}


// 运输轨迹
export function driverPosition(data) {
  return request({
    url:'/logistics/driverPosition',
    method:'post',
    data
  })
}


// 订单详情
export function ymmOrderInfo(data) {
  return request({
    url:'/logistics/ymmOrderInfo',
    method:'post',
    data
  })
}


// 排货详情
export function planGoodsInfo(data) {
  return request({
    url:'/deliver/planGoodsInfo',
    method:'post',
    data
  })
}

// 修改司机信息
export function inputDriverInfo(data) {
  return request({
    url:'/deliver/inputDriverInfo',
    method:'post',
    data
  })
}

// 关联采购单
export function needTakePurchaseGoods(data) {
  return request({
    url:'/deliver/needTakePurchaseGoods',
    method:'post',
    data
  })
}

// 修改排货商品包装
export function planGoodsEdit(data) {
  return request({
    url:'/deliver/planGoodsEdit',
    method:'post',
    data
  })
}

//核销单查询
export function checkInvoiceList(data) {
  return request({
    url:'/finance/checkInvoiceQuery',
    method:'post',
    data
  })
}

//采购销售明细生成报表
export function exportDetailListProfit(data) {
  return request({
    url:'/orders/exportDetailListProfit',
    method:'post',
    data
  })
}


//修改提货数量
export function changePlanNum(data) {
  return request({
    url:'/purchase/changePlanNum',
    method:'post',
    data
  })
}

//待物流提货数量
export function takeCount(data) {
  return request({
    url:'/takeOrder/takeCount',
    method:'post',
    data
  })
}


//排货回退
export function goodsPlanBack(data) {
  return request({
    url:'/deliver/goodsPlanBack',
    method:'post',
    data
  })
}


//资金成本列表
export function capitalCostList(data) {
  return request({
    url:'/capitalCost/orderList',
    method:'post',
    data
  })
}

//资金汇总
export function capitalCostSummary(data) {
  return request({
    url:'/capitalCost/summary',
    method:'post',
    data
  })
}

//资金成本明细
export function capitalCostDetailList(data) {
  return request({
    url:'/capitalCost/detailList',
    method:'post',
    data
  })
}


//利息记录列表
export function capitalCostInterestList(data) {
  return request({
    url:'/capitalCost/interestList',
    method:'post',
    data
  })
}

//利率列表
export function capitalCostRateList(data) {
  return request({
    url:'/capitalCost/rateList',
    method:'post',
    data
  })
}

//利率设置
export function capitalCostRateSet(data) {
  return request({
    url:'/capitalCost/rateSet',
    method:'post',
    data
  })
}

//代加工列表
export function agentProcessBillList(data) {
  return request({
    url:'/agentProcess/billList',
    method:'post',
    data
  })
}

//代加工详情
export function agentProcessBillInfo(data) {
  return request({
    url:'/agentProcess/billInfo',
    method:'post',
    data
  })
}


//代工费申请支付
export function agentProcessAddApplyPay(data) {
  return request({
    url:'/agentProcess/addApplyPay',
    method:'post',
    data
  })
}


//申请支付列表
export function agentProcessApplyList(data) {
  return request({
    url:'/agentProcess/applyList',
    method:'post',
    data
  })
}

//申请支付详情
export function agentProcessApplyInfo(data) {
  return request({
    url:'/agentProcess/applyInfo',
    method:'post',
    data
  })
}


//申请支付详情
export function agentProcessApplyProcess(data) {
  return request({
    url:'/agentProcess/applyProcess',
    method:'post',
    data
  })
}

//付款申请单确认付款
export function agentProcessApplyPay(data) {
  return request({
    url:'/agentProcess/applyPay',
    method:'post',
    data
  })
}


//付款申请单确认付款
export function agentProcessUpdatePrintNum(data) {
  return request({
    url:'/agentProcess/updatePrintNum',
    method:'post',
    data
  })
}


//仓库已处理订单
export function logisticsCheckOrders(data) {
  return request({
    url:'/orders/logisticsCheckOrders',
    method:'post',
    data
  })
}

//发货单详情-批量
export function getPrintContentBatch(data) {
  return request({
    url:'/deliver/getPrintContent',
    method:'post',
    data
  })
}


//入库单详情-批量
export function entryPrintContentBatch(data) {
  return request({
    url:'/warehouse/entryPrintContent',
    method:'post',
    data
  })
}


//批量下载未回传合同附件
export function downloadOldContract(data) {
  return request({
    url:'/orders/downloadOldContract',
    method:'post',
    data
  })
}

// 实际发货仓库列表
export function getShipWarehouseList(data) {
  return request({
    url:'/deliver/shipWarehouseList',
    method:'post',
    data
  })
}

// 修改销售合同商品行备注并推送SAP
export function changeDetailRemark(data) {
  return request({
    url:'/orders/changeDetailRemark',
    method:'post',
    data
  })
}


// 修改采购合同商品行备注并推送SAP
export function changeDetailRemarkPurchase(data) {
  return request({
    url:'/purchase/changeDetailRemark',
    method:'post',
    data
  })
}


// 修改采购合同商品行备注并推送SAP
export function entryBatchNoDiff(data) {
  return request({
    url:'/warehouse/entryBatchNoDiff',
    method:'post',
    data
  })
}

// 批量转移客户
export function importBatchMove(data) {
  return request({
    url:'/customers/importBatchMove',
    method:'post',
    data
  })
}

// 采购单修改投委订单状态
export function changeOrderIsEntrust(data) {
  return request({
    url:'/purchase/changeOrderIsEntrust',
    method:'post',
    data
  })
}

// 销售单修改投委订单状态
export function changeEntrust(data) {
  return request({
    url:'/orders/changeEntrust',
    method:'post',
    data
  })
}


// 修改期望发货时间
export function changeExpectSendDate(data) {
  return request({
    url:'/orders/changeExpectSendDate',
    method:'post',
    data
  })
}

// 同步SAP产品分类
export function syncGoodsClass(data) {
  return request({
    url:'/goods/syncGoodsClass',
    method:'post',
    data
  })
}


// 仓库列表
export function goodsWarehouseList(data) {
  return request({
    url:'/goods/warehouseList',
    method:'post',
    data
  })
}


// 日库存
export function goodsStockList(data) {
  return request({
    url:'/goods/stockList',
    method:'post',
    data
  })
}

// 日库存管理
export function goodsDayStockList(data) {
  return request({
    url:'/goods/dayStockList',
    method:'post',
    data
  })
}

// 日库存品类
export function goodsClassList(data) {
  return request({
    url:'/goods/goodsClassList',
    method:'post',
    data
  })
}

// 修改库存
export function goodsUpdateStock(data) {
  return request({
    url:'/goods/updateStock',
    method:'post',
    data
  })
}


// 商品分类设置商品列表
export function goodskingGoodsList(data) {
  return request({
    url:'/goods/kingGoodsList',
    method:'post',
    data
  })
}

// 商品分类设置商品列表
export function goodsCommonKingGoods(data) {
  return request({
    url:'/goods/commonKingGoods',
    method:'post',
    data
  })
}


// 目标列表
export function saleTargetTargetList(data) {
  return request({
    url:'/saleTarget/targetList',
    method:'post',
    data
  })
}

// 目标明细列表
export function saleTargetDetailList(data) {
  return request({
    url:'/saleTarget/detailList',
    method:'post',
    data
  })
}

// 更新实际销量
export function syncActualSaleNum(data) {
  return request({
    url:'/saleTarget/syncActualSaleNum',
    method:'post',
    data
  })
}

// 目标销量合计
export function targetSummary(data) {
  return request({
    url:'/saleTarget/targetSummary',
    method:'post',
    data
  })
}

// 目标统计数据
export function targetAnalysis(data) {
  return request({
    url:'/saleTarget/targetAnalysis',
    method:'post',
    data
  })
}

// 设置目标完成量
export function setActualTarget(data) {
  return request({
    url:'/saleTarget/setActualTarget',
    method:'post',
    data
  })
}

// 日目标设置
export function setTarget(data) {
  return request({
    url:'/saleTarget/setTarget',
    method:'post',
    data
  })
}

// 目标详情
export function targetDetail(data) {
  return request({
    url:'/saleTarget/targetDetail',
    method:'post',
    data
  })
}

// 目标详情
export function pushStock(data) {
  return request({
    url:'/goods/pushStock',
    method:'post',
    data
  })
}

// 同步库存
export function renewStock(data) {
  return request({
    url:'/goods/renewStock',
    method:'post',
    data
  })
}

// SAP产品线
export function kingGoodsClassList(data) {
  return request({
    url:'/goods/kingGoodsClassList',
    method:'post',
    data
  })
}

// 库存删除
export function deleteStock(data) {
  return request({
    url:'/goods/deleteStock',
    method:'post',
    data
  })
}

// 订单显示地址状态切换
export function changeHideAddress(data) {
  return request({
    url:'/orders/changeHideAddress',
    method:'post',
    data
  })
}

// 采购订单排货列表
export function planGoodsList(data) {
  return request({
    url:'/purchase/planGoodsList',
    method:'post',
    data
  })
}

// 批次号价格
export function queryGoodsPriceList(data) {
  return request({
    url:'/warehouse/queryGoodsPriceList',
     method:'post',
        data
      })
    }

// 员工成长分析表
export function saleAnalysisList(data) {
  return request({
    url:'/user/saleAnalysisList',

    method:'post',
    data
  })
}


// 延迟发货原因
export function inputDelayReason(data) {
  return request({
    url:'/orders/inputDelayReason',
     method:'post',
        data
      })
    }

//  新增修改员工基准
export function addStandard(data) {
  return request({
    url:'/user/addStandard',
    method:'post',
    data
  })
}


// 发货延迟原因列表
export function delayReasonList(data) {
  return request({
    url:'/orders/delayReasonList',
     method:'post',
        data
      })
    }


// 新增修改员工额外量
export function addAdditional(data) {
  return request({
    url:'/user/addAdditional',
    method:'post',
    data
  })
}

// 基准线列表
export function getStandardList(data) {
  return request({
    url:'/user/getStandardList',
    method:'post',
    data
  })
}

// 额外量列表
export function getAdditionalList(data) {
  return request({
    url:'/user/getAdditionalList',
    method:'post',
    data
  })
}

// 删除额外量
export function delAdditional(data) {
  return request({
    url:'/user/delAdditional',
    method:'post',
    data
  })
}

// 获取人员信息
export function getDepartmentUser(data) {
  return request({
    url:'/user/getDepartmentUser',
    method:'post',
    data
  })
}

// 导入基准线
export function importStandard(data) {
  return request({
    url:'/user/importStandard',
    method:'post',
    data
  })
}

//  获取月目标列表
export function getTargetVolumeList(data) {
  return request({
    url:'/user/getTargetVolumeList',
    method:'post',
    data
  })
}

// 新增月目标
export function addTargetVolume(data) {
  return request({
    url:'/user/addTargetVolume',
    method:'post',
    data
  })
}

// 获取用户月份目标基准量
export function getUserMinimum(data) {
  return request({
    url:'/user/getUserMinimum',
    method:'post',
    data
  })
}

// 导入销售月目标
export function importVolume(data) {
  return request({
    url:'/user/importVolume',
    method:'post',
    data
  })
}
